<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			window.onload= function(){
				var btn1=document.getElementById("btn1");
				
				btn1.onclick=function(){					
					var box1=document.getElementById("box1");
					box1.style.left=parseInt(box1.style.left)+100+"px";
				}
				
			}
			
		</script>
	</head>
	<body>
		<button type="button" id="btn1">按钮</button>
		<div id="box1" style="width: 100px; height: 100px; background-color: palevioletred; position: absolute; left: 0px;"></div>
		
	</body>
</html>
